@()(implicit lang:Lang,request:Request[_])

@import play.api.cache._ 
@import util._ 
@import play.api.Play.current

<form role="search" action="#">
	<div class="form-group">
		<div class="input-group">
			<input class="form-control" id="navbarInput" type="search"
				placeholder="Search"> 
				<span class="input-group-btn">
				<button class="btn" type="submit">
					<span class="fui-search"></span>
				</button>
			   </span>
		</div>
	</div>
</form>
@if(request.session.get(util.Constants.User).isDefined){
<hr>
<div>
	<a class="btn btn-block btn-lg btn-success" href="@routes.Blogs.create">@Messages("article.new")</a>
</div>
}
<hr>
<div class="tagsinput" id="tagsinput_tagsinput" style="height: 100%;">
@Cache.getAs[List[String]](Constants.Categories).get.map{ tag =>
	<span class="tag">
	 <span>
	 @tag
	 </span> 
	 <a class="glyphicon glyphicon-folder-open" href="@routes.Blogs.tag(tag, 1)"></a>
	</span>
 }
</div>